﻿

<link href="/css/img.css" rel="stylesheet" />
<body>
    <table>
        <tr>
            <td>
                <div id="div_img"></div>
            </td>
        </tr>
    </table>
    <img src="/Image/320630.jpg" alt="这是一张可以放大的图片" title="myModal" width="300" height="200">
</body>

<script src="/Scripts/jquery-3.3.1.min.js"></script>
<script src="/Scripts/img.js?v=0.0.0.6"></script>
<script>
    tabledata();
    function tabledata() {
        var html = '<img src="/Image/320588.jpg" alt="这是一张可以放大的图片" title="myModal" width="300" height="200"> ';
        $('#div_img').html(html);
    }
    $('img').click(function () {
        showImg(this);
    });
</script>
 